Carbon


CreateWindowFromResource

Header: MacWindows.h Carbon status: Supported

Creates a window from 'wind' resource data.

OSStatus CreateWindowFromResource (
    SInt16 resID, 
    WindowRef *outWindow
);
resID

The resource ID of a resource of type ‘wind’. Pass in the ID of the 'wind' resource to be used to create the window.

outWindow

On input, a pointer to a value of type WindowPtr. On return, the window pointer points to the newly created window.

function result

A result code.

DISCUSSION

The CreateWindowFromResource function loads a window from a 'wind' resource. The Window Manager creates the window invisibly and places it at the front of the window list. After calling CreateWindowFromResource, you should set any desired associated data—using Window Manager or Control Manager accessor functions—then call the function TransitionWindow to display the window.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when WindowsLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by WindowsLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)